__author__ = 'Admin'
from models import *
#from django.db import models
from django import forms
from tinymce.widgets import TinyMCE
#from django.contrib.auth.models import User
#from django.contrib.auth import authenticate
class RegisterForm(forms.ModelForm):
    class Meta:
        model = Register
        exclude = {'register_date', 'status'}

class RegisterAdminForm(forms.ModelForm):
    class Meta:
        model = Register
        exclude = {'register_date', 'user_name', 'register_name', 'register_email', 'register_date'}

class ArticleForm (forms.ModelForm):
    class Meta:
        model = Article
        exclude = {'account_id', 'status', 'written_date'}

class HeadlineForm(forms.ModelForm):
    class Meta:
        model = Headline
        exclude = {'post_date'}
